<template>
	<view class="container">
		<view class="search">
			<view type="text" class="searchInput" @confirm="onSearch" >
				<uni-icons type="search" size="18"></uni-icons>
				<text>搜索</text>
				</view>
			<text class="searchTitle">搜索</text>
		</view>
		<view class="records">
			<view class="recordsDetail">
				<view class="recordsTitle">
					<text>普通机车、机油、工时</text>
				</view>
				<view class="message">
					<view class="username">
						<text class="usernameDetail">下单用户：张三</text>
					</view>
					<view class="price">
						<text class="priceDetail">实付金额：￥32.00</text>
					</view>
				</view>
				<view class="recordTime">
					<text>核销时间：2022-10-12 11:09</text>
				</view>
			</view>

			<view class="recordsDetail">
				<view class="recordsTitle">
					<text>普通机车、机油、工时</text>
				</view>
				<view class="message">
					<view class="username">
						<text class="usernameDetail">下单用户：张三</text>
					</view>
					<view class="price">
						<text class="priceDetail">实付金额：￥32.00</text>
					</view>
				</view>
				<view class="recordTime">
					<text>核销时间：2022-10-12 11:09</text>
				</view>
			</view>

			<view class="recordsDetail">
				<view class="recordsTitle">
					<text>普通机车、机油、工时</text>
				</view>
				<view class="message">
					<view class="username">
						<text class="usernameDetail">下单用户：张三</text>
					</view>
					<view class="price">
						<text class="priceDetail">实付金额：￥32.00</text>
					</view>
				</view>
				<view class="recordTime">
					<text>核销时间：2022-10-12 11:09</text>
				</view>
			</view>

			<view class="recordsDetail">
				<view class="recordsTitle">
					<text>普通机车、机油、工时</text>
				</view>
				<view class="message">
					<view class="username">
						<text class="usernameDetail">下单用户：张三</text>
					</view>
					<view class="price">
						<text class="priceDetail">实付金额：￥32.00</text>
					</view>
				</view>
				<view class="recordTime">
					<text>核销时间：2022-10-12 11:09</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			onSearch(event) {
				console.log('搜索内容:', event.target.value);
			}
		}
	}
</script>

<style>
	.container {
		background-color: #FFFFFF;
		height: 100vh;
	}

	.search {
		display: flex;
		height: 88rpx;
		background-color: #EFEFF5;
	}

	.searchInput {
		width: 620rpx;
		/* 根据需要调整宽度 */
		height: 56rpx;
		border: 2rpx solid #ccc;
		margin: 16rpx 0 16rpx 20rpx;
		border-radius: 12rpx;
		box-sizing: border-box;
		/* 确保内边距不会增加输入框的总宽度 */
		background-color: #FFFFFF;
		text-align: center;
	}

	.searchTitle {
		font-size: 32rpx;
		color: #1D6FFF;
		margin: 20rpx 0 0 20rpx;
	}

	.records {
		background-color: #FFFFFF;
	}

	.recordsDetail {
		width: 720rpx;
		height: 266rpx;
		border-bottom: 2rpx solid #CECECE;
		margin: 20rpx 14rpx 0 10rpx;
		box-shadow: 0 8rpx 12rpx 2rpx rgba(0, 0, 0, 0.1);
		/* 阴影设置 */

	}

	.recordsTitle {
		font-size: 32rpx;
		padding: 6rpx 246rpx 10rpx 34rpx;
		border-bottom: 2rpx solid #EFEFEF;
	}

	.username {
		font-size: 28rpx;
		padding: 12rpx 246rpx 14rpx 34rpx;
	}

	.price {
		font-size: 28rpx;
		padding: 0 246rpx 14rpx 34rpx;
		border-bottom: 2rpx solid #EFEFEF;
	}

	.recordTime {
		padding: 16rpx 246rpx 26rpx 34rpx;
	}
</style>